import { Attachment } from "./class-define";
const baseURL = "/api/user"
import { baseService } from './request'
export class UserDto {
    id: string;
    phoneNumber: string;
    emailConfirmed: boolean;
    normalizedEmail: string;
    email: string;
    normalizedUserName: string;
    password: string;
    userName: string;
    nickName: string;
    sex: number = 1;
    sexyName: string;
    confirmPassWord: string;
    teamCode: string;
    teamName: string;
    avatar: string;
    attachments: Attachment[];
    constructor() {
        this.attachments = [];
        this.sex = 0;
    }
}

export function changeUserInfo(data){
    return baseService.put({
        url: `${baseURL}/change-me`,
        data: data,
    });
}

